package org.linlinjava.litemall.admin.errorcode;

import org.linlinjava.litemall.core.exception.ErrorCode;
import org.linlinjava.litemall.db.domain.LumiereFormulaSpecificationsDataProportioning;

/**
 * Member 错误码枚举类
 *
 * member 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 标签相关  1000001000============
    ErrorCode LUMIERE_PACKAGE_CATEGORY_EXIST = new ErrorCode(1000001000, "类目名称已存在");

    ErrorCode LUMIERE_PACKAGE_CATEGORY_NAME_EMPTY = new ErrorCode(1000001002, "类目名称不能为空");

    // ========== 套餐商品相关  1000002000============
    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_NOT_EXIST = new ErrorCode(1000002000, "套餐不存在");
    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_DEFAULT = new ErrorCode(1000002001, "套餐未正确配置");
    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_DEFAULT_NUM = new ErrorCode(1000002002, "套餐未正确配置默认商品数量");

    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_NOT_REMOVED = new ErrorCode(1000002003, "套餐未下架不可编辑");

    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_WEEK_NOT_NULL = new ErrorCode(1000002004, "套餐营业时间未设置正确无法上架");
    ErrorCode LUMIERE_PACKAGE_CATEGORY_GOODS_ERROR_IN_USE = new ErrorCode(1000002005, "套餐使用到当前商品");
    // ========== 配方相关  1000002000============
    ErrorCode LUMIERE_FORMULA_FORMULA_TYPE_IS_USE = new ErrorCode(100_000_3_000, "当前类型已经被使用，不可删除");
    ErrorCode LUMIERE_FORMULA_FORMULA_IS_USE = new ErrorCode(100_000_3_001, "当前配方已经被使用，不可删除");

    ErrorCode LUMIERE_FORMULA_FORMULA_MATERIAL_EXIST = new ErrorCode(100_000_3_002, "当前配方原料已经存在，不可重复");

    ErrorCode LUMIERE_FORMULA_FORMULA_MATERIAL_USE = new ErrorCode(100_000_3_003, "当前原料类型已经引用，不可删除");

    // ========== 配方相关  1000004000============
    ErrorCode LUMIERE_FORMULA_FORMULA_SPECIFICATIONS_DATA_PROPORTIONING_IS_USE = new ErrorCode(100_000_4_000, "当前规格下已经存在相同原料，不可再添加");
    ErrorCode LUMIERE_FORMULA_FORMULA_SPECIFICATIONS_COUNT_IS_ZERO = new ErrorCode(100_000_4_001, "当前配方下必须存在默认规格，不可取消默认");

    ErrorCode LUMIERE_SHOP_ID_IS_NULL = new ErrorCode(100_000_5_000, "门店成员才可盘点");

    ErrorCode MERCHANDISE_IMPORT_LIST_IS_EMPTY = new ErrorCode(100_000_6_000, "导入原料数据不能为空！");

    ErrorCode MERCHANDISE_IMPORT_DATA_FORMAT_ERROR = new ErrorCode(100_000_6_001, "导入原料数据格式错误！");

    ErrorCode MERCHANDISE_IMPORT_DATA_EMPTY_ERROR = new ErrorCode(100_000_6_002, "门店提交申请原料数据不能为空！");

    ErrorCode MERCHANDISE_HQ_MATERIAL_INSUFFICIENT_ERROR = new ErrorCode(100_000_6_003, "总部原料{}不足，无法通过审核！");

    // ========== 套餐商品相关  1000002000============
    ErrorCode LUMIERE_GOODS_NOT_REMOVED = new ErrorCode(100_000_7_000, "未下架不可编辑");

    // ========== 金额差异设置相关 1000008000 ============
    ErrorCode LUMIERE_AMOUNT_DIFFERENCE_SHOP_EXIST = new ErrorCode(100_000_8_000, "该门店已存在相差金额设置");
    ErrorCode LUMIERE_AMOUNT_DIFFERENCE_ID_LIST_EMPTY = new ErrorCode(100_000_8_001, "ID列表不能为空");
    ErrorCode LUMIERE_AMOUNT_DIFFERENCE_BATCH_UPDATE_FAILED = new ErrorCode(100_000_8_002, "批量更新失败");
}
